package cn.edu.sgu.www.mhxysy.dto.chongwu;

import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.PositiveOrZero;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class ChongwuCategoryDTO implements DataTransferObject {

    @ApiModelProperty(value = "ID")
    private Integer id;

    /**
     * 宠物名称
     */
    @NotBlank(message = "宠物名称" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "宠物名称", required = true)
    private String name;

    /**
     * 宠物类型
     */
    @Positive(message = "宠物类型" + CustomMessages.ILLEGAL)
    @NotNull(message = "宠物类型" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "宠物类型", required = true)
    private Integer type;

    /**
     * 参战等级
     */
    @PositiveOrZero(message = "参战等级" + CustomMessages.ILLEGAL)
    @NotNull(message = "参战等级" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "参战等级", required = true)
    private Integer grade;

    /**
     * 专属内丹类型ID
     */
    @Positive(message = "专属内丹类型ID" + CustomMessages.ILLEGAL)
    @NotNull(message = "专属内丹类型" + CustomMessages.ID_NOT_NULL)
    @ApiModelProperty(value = "专属内丹类型ID", required = true)
    private Integer neidanId;

    /**
     * 初始寿命
     */
    @ApiModelProperty(value = "初始寿命")
    private Integer lifespan;

    /**
     * 特殊宠物的资质类型
     */
    @ApiModelProperty(value = "特殊宠物的资质类型")
    private Integer specialType;

    /**
     * 内丹数量
     */
    @ApiModelProperty(value = "内丹数量")
    private Integer neidanQuantity;
}